<template>
  <div>
    <input type="text" :value="value" @input="handleInput" />
  </div>
</template>

<script>
export default {
  props: ['value'],
  methods: {
    handleInput(ev) {
      this.$emit('input', ev.target.value)
    }
  }
}
</script>


<style lang="scss" scoped>
div {
  input {
    margin: 5px auto;
    border: solid 1px #ddd;
    padding: 6px;
    outline: none;
  }
}
</style>